<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div>
	<form id="f_cases" action="<c:url value='/admin/cases/save.do'/>" method="post">
		<input type="hidden" name="cases.casesId" value="${cases.casesId}">
		<table id="t_cases_detail">
			<tr>
				<th width="75px">中文名称</th>
				<td>
					<input type="text" name="cases.casesName" value="${cases.casesName}"/>
				</td>
			</tr>
			<tr>
				<th width="75px">审核</th>
				<td>
					<select name="cases.audit">
						<option value="1" <c:if test="${cases.audit ==1}">selected="selected"</c:if>>未处理</option>
						<option value="2" <c:if test="${cases.audit ==2}">selected="selected"</c:if>>已经处理，但是不确定</option>
						<option value="3" <c:if test="${cases.audit ==3}">selected="selected"</c:if>>通过</option>
						<option value="4" <c:if test="${cases.audit ==4}">selected="selected"</c:if>>不通过</option>
					</select>
				</td>
			</tr>
			<tr>
				<th width="75px">是否可用</th>
				<td>
					<input type="checkbox" id="f_cases_enabled" name="cases.enabled" value="1"/>
					<script type="text/javascript">
						var casesEnabled = "<c:out value='${cases.enabled}' />";
						var casesEnabledValue = parseInt(casesEnabled);
						if(casesEnabledValue == 1){
							$("#f_cases_enabled").attr("checked",true);
					  	}
					</script>
				</td>
			</tr>
			<tr>
			<th width="75px">完成后的奖励积分</th>
				<td>
					<input type="text" name="cases.score" value="${cases.score}"/>
				</td>
			</tr>
			<tr>
			<th width="75px">一共有多少用户正在玩/已经玩过 此游戏</th>
				<td>
					<input type="text" name="cases.total" value="${cases.total}"/>
				</td>
			</tr>
			
			<tr>
				<th width="75px"> 此游戏一共可以给多少用户玩， 例如一共游戏只能给前10个人玩,-1表示不限制</th>
				<td>
					<input type="text" name="cases.limits" value="${cases.limits}"/>
				</td>
			</tr>
			<tr>
				<th width="75px">描述</th>
				<td>
					<textarea rows="5" cols="20" name="cases.description"><c:out value="${cases.description}"/></textarea>
				</td>
			</tr>
			<tr>
				<th width="75px">给后台审核的详细说明</th>
				<td>
					<textarea rows="5" cols="20" name="cases.manifest"><c:out value="${cases.manifest}"/></textarea>
				</td>
			</tr>
			<tr>
				<td><input type="submit" name="保存" value="保存"/></td>
			</tr>
		</table>
	</form>
</div>